import { Rule, RuleType } from '@midwayjs/validate';

export class UserDTO {
  @Rule(RuleType.string().required())
  username: string;

  @Rule(RuleType.string().required())
  password: string;

  @Rule(RuleType.string().required())
  phoneNum: string;

  @Rule(RuleType.string())
  avatarUrl: string;

  @Rule(RuleType.date())
  regtime: Date;

  @Rule(RuleType.number())
  status: number;
}
